<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
    <title>{:set('titles')}</title>
    <meta name="keywords" content="{:set('keywords')}">
    <meta name="description" content="{:set('description')}">
    {include file="header"}
    <!--广告位置-->
    <div class="want">
        {:ad(1)} 
    </div>
    <!--幻灯片-->
    {if guoji('open')==1}
    <div class="newsday wapyc">
        <div class="newsbox ">
            <div class="newsprev">	
                <span>
					<img src="{:m()}/img/nprev1.png" class="npr1"/>
			        <img src="{:m()}/img/nprev2.png" class="npr2"/>
				</span>
            </div>
            <div class="newsban swiper-container">
                <ul class="clearfloat swiper-wrapper">
                    {volist name=":fun_s('html',array('open'=>1,'huandeng'=>1),'id desc',20,1)" id="vo"}
                    <li class="swiper-slide">
                        <a href="{:url('index/index/html',array('id'=>$vo.id))}">
                            <div class="pic_div">
                                <img src="{$vo.content|pic}" />
                                <div class="pic_bj"></div>
                            </div>
                            <div class="newscont">{$vo.title}</div>
                        </a>
                    </li>
                    {/volist}
                </ul>
            </div>
            <div class="newsnext">	<span>
						<img src="{:m()}/img/nnext1.png" class="nnex1"/>
					    <img src="{:m()}/img/nnext2.png" class="nnex2"/>
					</span>
            </div>
        </div>
    </div>
    {/if} 
    <!--幻灯片end-->
    <!--置顶推荐-->
    {if guoji('open1')==1}
    <div class="days wapyc">
        <div class="widget-header"><h4>站长推荐</h4></div>
        <div class="manu clearfloat">
            <!--推荐前1篇-->
            <div class="daysway">
                {volist name=":fun_s('html',array('open'=>1,'settop'=>1),'times desc',1,1)" id="vo"}
                <div class="way1">
                    <a href="{:url('index/index/html',array('id'=>$vo.id))}">
                        <img src="{$vo.content|pic}" />
                        <p>{$vo.title}</p>
                    </a>
                    <div class="way_tit">{:fun_cate($vo.tid,'name')}</div>
                </div>
                {/volist}
            </div>
            <!--推荐右2篇-->
            <div class="dayactbox">
                {volist name=":fun_s('html',array('open'=>1,'settop'=>1),'times desc',3,1)" id="vo" offset="1" length='3'}
                <div class="dayact clearfloat">
                    <a href="{:url('index/index/html',array('id'=>$vo.id))}">
                        <div class="actpic">
                            <img src="{$vo.content|pic}" />
                            <div class="way_tit">{:fun_cate($vo.tid,'name')}</div>
                        </div>
                        <div class="waycont">
                            <h1>{$vo.title}</h1>
                            <div class="waytext">{:cut_c($vo.content,100)}</div>
                            <div class="like clearfloat">
                                <div class="zantime">	<span class="headport">
                                    <img src="{:fun_u($vo.uid, 'userhead')}"/></span>
                                    <span class="likename">{:fun_u($vo.uid, 'username')}</span>
                                </div>
                                <div class="liketime">{$vo.time|times}</div>
                            </div>
                            <div class="jian">
                                <img src="{:m()}/img/jian.png" />
                            </div>
                        </div>
                    </a>
                </div>
                {/volist}
            </div>
        </div>
    </div>
    {/if}
    <!--置顶推荐end-->
    <div class="carbox clearfloat">
        <div class="carmat">
            <div class="widget-header"><h4>最新文章</h4>
                <a class="gengduo" href="{:url('index/index/cate')}"><i class="layui-icon">&#xe65b;</i>  </a>
            </div>
            <ul>
                {volist name=":fun_s('html',array('open'=>1),'times desc',8,1)" id="vo"}
                <li>
                    <div class="matcont">
                        <a href="{:url('index/index/html',array('id'=>$vo.id))}">
                            <h1>{$vo.title}</h1>
                            <div class="mattext">{:cut_c($vo.content,100)}</div>
                        </a>
                        <div class="like clearfloat">
                            <div class="zantime">	
                                <span class="headport"><img src="{:fun_u($vo.uid, 'userhead')}"/></span>
                                <span class="likename">{:fun_u($vo.uid, 'username')}</span>
                                <span class="liked"></span>
                                <span class="likename">{$vo.time|times}</span>
                            </div>
                            <div class="zanbox">	
                                <span class="zanbtn"></span><span class="zannum">{$vo.zan}</span>
                                <a href="javascript:;" class="cri"></a><span class="zannum">{:fun_st('comment', array('fid'=>$vo.id))}</span>
                            </div>
                        </div>
                    </div>
                </li>
                {/volist}
            </ul>
            <div class="carmore">	<a href="{:url('index/index/cate')}">点击加载更多</a>
            </div>
        </div>
        <!--右边-->
        <div class="drivebox">
            <!--热门文章-->
            <div class="industbox">
                <div class="widget-header"><h4>猜你喜欢</h4></div>
                <div class="indust">
                    <ul>
                        {volist name=":fun_sj('html',array('open'=>1),12)" id="vo"}
                        <li>
                            <a href="{:url('index/index/html',array('id'=>$vo.id))}" class="clearfloat">
                                <div class="industpic">
                                    <img src="{$vo.content|pic}" />
                                </div>
                                <div class="industcont">
                                    <h1>{$vo.title}</h1>
                                    <p>{:cut_c($vo.content,15)}</p>
                                </div>
                            </a>
                        </li>
                        {/volist}
                    </ul>
                </div>
            </div> 
        </div>
    </div>
    <!--友情链接-->
    <div class="want">
        <div class="widget-header"><h4>友情链接</h4></div>
        <ul class="post-tags">
            {volist name=":fun_s('link',array('wz'=>2,'open'=>1),'px desc',100,0)" id="vo"}
            {if condition="$vo['timed'] gt date('Y-m-d',time())"} 
            <li>
                <a href="{$vo.lianjie}" {if $vo.xin==1 }target="_blank" {/if}>
				{$vo.name}
				</a>
			</li>
            {/if} 
        	{/volist} 
        </ul>
    </div>
    <!--预埋钩子-->
    {:hook('indexindex')}
    {include file="footer"}